/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package dominio;

/**
 *
 * @author Richard
 */
public class Subarea {
    private String sigla;
    private int nivel;

    public Subarea() {
    }

    public Subarea(String sigla, int nivel) {
        this.sigla = sigla;
        this.nivel = nivel;
    }
    
    

    public String getSigla() {
        return sigla;
    }

    public void setSigla(String sigla) {
        this.sigla = sigla;
    }

    public int getNivel() {
        return nivel;
    }

    public void setNivel(int nivel) {
        this.nivel = nivel;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (sigla != null ? sigla.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Subarea)) {
            return false;
        }
        Subarea other = (Subarea) object;
        return (this.sigla != null || other.sigla == null) && (this.sigla == null || this.sigla.equals(other.sigla));
    }
    
}
